package com.cpit.qualitycontrol.service;

import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.qualitycontrol.entity.ProcessRule;

import java.util.List;

/**
 *
 * @author Hull
 * @date 2017/9/30
 */
public interface ProcessRuleService {
    ProcessRule findById(Long id);
    ProcessRule findByProcessRuleByDeviceTypeOrderTypeProject(Long deviceTypeId, Long workOrderTypeId, Long projectId);
    List<String> findOrderTypeIdsNotExistProcessRule(Long deviceTypeId, String workOrderTypeIds, Long projectId);
    List<ProcessRule> findAll();
    ProcessRule create(ProcessRule processRule) throws Exception;
    ProcessRule copy(Long id);
    ProcessRule modify(ProcessRule processRule) throws Exception;
    void delete(ProcessRule processRule) throws Exception;
    void delete(Long id) throws Exception;
    List<ProcessRule> findByCondition(int page,
                                     int size,
                                     String order,
                                     String orderBy,
                                     String name, Long deviceTypeId, Long workOrderTypeId);
    @SuppressWarnings("rawtypes")
    TableJsonData findByConditionJqg(TableDataQueryCondition cond);
}
